<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	orderNo		= Request("orderNo")
	compPrdCd	= Request("compPrdCd")
	compPrdNm	= Request("compPrdNm")
	compPrdSize	= Request("compPrdSize")
	unitPrice		= Request("unitPrice")
	amount			= Request("amount")
	articlePrice		= Request("articlePrice")
	dueDt			= Request("dueDt")
	flag				= Request("flag")
	seq				= Request("seq")

	If unitPrice = "" Then unitPrice = "0" End If 
	If amount = "" Then amount = "0" End If 
	If articlePrice = "" Then articlePrice = "0" End If 
	If seq = "" Then seq = "0" End If 

	compPrdCd		= Replace(compPrdCd,"'","''")
	compPrdNm		= Replace(compPrdNm,"'","''")
	compPrdSize		= Replace(compPrdSize,"'","''")
	unitPrice			= Replace(unitPrice,",","")
	amount				= Replace(amount,",","")
	articlePrice			= Replace(articlePrice,",","")
	
	issueId = Request.Cookies("S_uid")
		
	SQLTitle = "-- ■■■■ 오더 품목 정보 관리 저장 ■■■■"
	SQL = "exec spCompOrderArticle " & orderNo & ", '" & compPrdCd & "', '" & compPrdNm & "', '" & compPrdSize & "', " & amount & ", " & unitPrice & ", " & articlePrice & ", '" & dueDt & "', '" & flag & "', '" & issueId & "', " & seq
	
	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML2("Save OK!",orderNo)
%>